﻿using SqlSugar;
using System;
using YNTK.Common.Const;
using YNTK.Common.Entity;

namespace YNTK.System.Entitys.Permission
{
    /// <summary>
    /// 组织资料(管理手册、方针目标、法律法规、资质荣誉)基类
    /// 版 本：V1.0.0.0.0
    /// 版 权：云南通科科技有限公司（https://www.yntkkj.com）
    /// 作 者：李仕鹏
    /// 日 期：2022.10.25
    /// </summary>
    [SugarTable("base_organizedata")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class OrganizeDataEntity: CLDEntityBase
    {
        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 法律法规分类id
        /// </summary>
        [SugarColumn(ColumnName = "F_ClassifyId", ColumnDescription = "法律法规分类id")]
        public string ClassifyId { get; set; }

        /// <summary>
        /// 组织资料类型(0.管理手册 1.方针目标 2.法律法规 3.资质荣誉)
        /// </summary>
        [SugarColumn(ColumnName = "F_Type", ColumnDescription= "组织资料类型(0.管理手册 1.方针目标 2.法律法规 3.资质荣誉)")]
        public int Type { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [SugarColumn(ColumnName = "F_Title", ColumnDescription = "标题")]
        public string Title { get; set; }

        /// <summary>
        /// 编码,法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_Code", ColumnDescription = "编码,法律法规特有")]
        public string Code { get; set; }

        /// <summary>
        /// 发布部门,法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_ReleaseUnit", ColumnDescription = "发布部门,法律法规特有")]
        public string ReleaseUnit { get; set; }

        /// <summary>
        /// 实施日期,法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_MaterialDate", ColumnDescription = "实施日期,法律法规特有")]
        public DateTime? MaterialDate { get; set; }

        /// <summary>
        /// 使用日期,法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_UseDate", ColumnDescription = "使用日期,法律法规特有")]
        public DateTime? UseDate { get; set; }

        /// <summary>
        /// 适用条款,法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_ApplicableProvision", ColumnDescription = "适用条款,法律法规特有")]
        public string ApplicableProvision { get; set; }

        /// <summary>
        /// 适用范围(机构id,多个按逗号分割,不选默认全组织),法律法规特有
        /// </summary>
        [SugarColumn(ColumnName = "F_ApplicableScope", ColumnDescription = "适用范围,法律法规特有")]
        public string ApplicableScope { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        [SugarColumn(ColumnName = "F_Source", ColumnDescription = "来源")]
        public string Source { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnName = "F_Content", ColumnDescription = "内容")]
        public string Content { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }
    }
}
